package com.dubbo.Provider.Impl;

import com.dubbo.Provider.Interface.DemoService;
import com.dubbo.bean.User;
import org.apache.log4j.Logger;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by thinkjoy on 2017/6/30.
 * 服务提供者
 */
public class DemoServiceImpl implements DemoService {
    private static final Logger LOG= Logger.getLogger(DemoServiceImpl.class);

    public String sayHello(String name) {
        return "Hello "+name;
    }

    public List getUsers() {
        List list=new ArrayList();
        User user1=new User("jack",20,"男");
        User user2=new User("tom",21,"男");
        User user3=new User("gogo",22,"男");
        User user4=new User("rose",19,"女");
        list.add(user1);
        list.add(user2);
        list.add(user3);
        list.add(user4);
        return list;
    }
}
